import api from "@/api";

// 用户登录
export async function loginApi(username,password){
    let res = await api({
        method:'post',
        data:{username,password},
        url:'/h5Api/userManage/accountLogin',
    })

    return res.data
}

// 用户注册

export async function regApi(data){
    let res = await api({
        method:'post',
        data:data,
        url:'/h5Api/userManage/register',
    })

    return res
}
// 首页基本信息
export async function bidProposal (data){
    let res = await api({method:'post',data,url:'/module/bidProposal'})
    let banner = await api({method:'post',data,url:'/module/banner'})
    return {doc:res.data,banner:banner.data}
}
// 模块
export async function templateTopics (){
    let res = await api({url:'/module/templateTopics',method:'post'})
    return res.data
}

// 首页搜索
export async function homeSearch (data){
    let res = await api({url:'/module/homeSearch',method:'post',data}    )
    return res.data
}

